/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.fee.facade.command.order;

import info.peigen.hotpot.business.fee.facade.enums.FeeAction;
import info.peigen.hotpot.business.fee.facade.enums.FeeProductCode;
import info.peigen.hotpot.common.core.lang.money.Money;
import info.peigen.hotpot.common.service.base.ServiceOrderBase;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;

/**
 * <b>(FeeOrder)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/8/26
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class FeeOrder extends ServiceOrderBase {
    /** 交易系统订单号 */
    @NotEmpty
    String tradeId;
    /** 针对哪个站点 */
    @NotEmpty
    String stationParentId;
    /** 针对哪个客户 */
    @NotEmpty
    String customerId;
    String partnerId;
    /** 交易金额-包含币种 */
    @Builder.Default
    Money          transAmount = Money.zero();
    /** 充电度数 */
    @NotNull
    BigDecimal     chargingCount;
    /** 当前行为 */
    @NotNull
    FeeAction      action;
    /** 收费产品码 */
    @NotNull
    FeeProductCode code;
    /** memo */
    String memo;
}